//
//  SVGAnimateElement.m
//  Shake and Bake
//
//  Created by Antoine Quint on 12/10/07.
//  Copyright 2007 __MyCompanyName__. All rights reserved.
//

#import "SVGAnimateElement.h"


@implementation SVGAnimateElement

- (void)initAnimationProperties:(NSDictionary *)attributes {

  // start by setting up the core properties
  [super initAnimationProperties:attributes];

  // now set up properties specific to <animate>
  NSString *to = [attributes objectForKey:@"to"];

	// "type" attribute
	if ([self.keyPath isEqualToString:@"opacity"]) {
    self.toValue = [NSNumber numberWithFloat:[to floatValue]];
	}

}

@end
